package org.harsh.transmission.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 传输消息对象 trans_msg
 * 
 * @author liuhaibo
 * @date 2024-08-25
 */
public class TransMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    private Long msgId;

    /** 传输任务类型 */
    @Excel(name="传输类型")
    private Long transType;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private Long msgType;

    /** 消息字节长度 */
    @Excel(name = "消息字节长度")
    private Long msgSize;

    /** 来源节点 */
    @Excel(name = "来源节点")
    private Long fromNode;

    /** 来源类型 */
    @Excel(name = "来源类型")
    private Long fromType;

    /** 来源ID */
    @Excel(name = "来源ID")
    private Long fromId;

    /** 消息数据 */
    @Excel(name = "消息数据")
    private String msgData;

    /** 消息校验码 */
    @Excel(name = "消息校验码")
    private String msgMd5;

    public Long getTransType() {
        return transType;
    }

    public void setTransType(Long transType) {
        this.transType = transType;
    }

    public void setMsgId(Long msgId)
    {
        this.msgId = msgId;
    }

    public Long getMsgId()
    {
        return msgId;
    }

    public void setMsgType(Long msgType) 
    {
        this.msgType = msgType;
    }

    public Long getMsgType() 
    {
        return msgType;
    }

    public void setMsgSize(Long msgSize) 
    {
        this.msgSize = msgSize;
    }

    public Long getMsgSize() 
    {
        return msgSize;
    }

    public void setFromNode(Long fromNode) 
    {
        this.fromNode = fromNode;
    }

    public Long getFromNode() 
    {
        return fromNode;
    }

    public void setFromType(Long fromType) 
    {
        this.fromType = fromType;
    }

    public Long getFromType() 
    {
        return fromType;
    }

    public void setFromId(Long fromId) 
    {
        this.fromId = fromId;
    }

    public Long getFromId() 
    {
        return fromId;
    }

    public void setMsgData(String msgData) 
    {
        this.msgData = msgData;
    }

    public String getMsgData() 
    {
        return msgData;
    }

    public void setMsgMd5(String msgMd5) 
    {
        this.msgMd5 = msgMd5;
    }

    public String getMsgMd5() 
    {
        return msgMd5;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("msgId", getMsgId())
            .append("msgType", getMsgType())
            .append("msgSize", getMsgSize())
            .append("fromNode", getFromNode())
            .append("fromType", getFromType())
            .append("fromId", getFromId())
            .append("msgData", getMsgData())
            .append("msgMd5", getMsgMd5())
            .toString();
    }
}
